package com.ums.scumspay.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class RandomUtils {

    /**
     * @return {@code String}
     */
    public static String getRandomNum(int num){
        StringBuilder sb = new StringBuilder();
        Random random = new Random();
        for (int i = 0; i < num; i++) {
            int j = random.nextInt(10);
            sb.append(j);
        }
        return sb.toString();
    }

    public static void main(String[] args) {
        System.out.println(new SimpleDateFormat("yyyyMMddmmHHssSSS").format(new Date()));
    }

}
